package com.iuie.ns.system.exception;

/**
 * @desc 接口异常
 * @createTime 2017年8月24日 下午2:33:25
 * @author iuie
 */
public class ApiException extends RuntimeException {
    
    private static final long serialVersionUID = 3595245841359292172L;
    
    private Object params;
    
    private String code;

    public ApiException() {
        super();
    }
    public ApiException(String message) {
        super(message);
    }
    public ApiException(String code, String message, Object params) {
        super(message);
        this.code = code;
        this.params = params;
    }
    public Object getParams() {
        return params;
    }
    public void setParams(Object params) {
        this.params = params;
    }
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
}
